#ifndef CHATDBHANDLER_H
#define CHATDBHANDLER_H
#include "dbhandler.h"
#include <vector>
//User表结构为:
//USER(
//        NAME CHAR(20) PRIMARY KEY,
//        PASSWORD CHAR(20),
//        );
class ChatDbHandler : public DbHandler{
public:
    int InsertUserItem(string name, string password);
    int GetPwInUserByName(string &a, string item, string condition, int (*callback)(void*,int,char**, char**));
    void CreateUSER();
    int GetAllUserName(vector<string> &user_name);
};
#endif // CHATDBHANDLER_H
